<?php
App::uses('AppModel', 'Model');
/**
 * Team Model
 *
 */
class Team extends AppModel {
    public $hasMany = array(
        'PlaysLocal' => array(
            'className' => 'Match',
            'foreignKey' => 'home'
        ),
        'PlaysVisitor' => array(
            'className' => 'Match',
            'foreignKey' => 'visitor'
        ),
		'Player' => array(
			'ClassName' => 'Player',
			'foreignKey' => 'team_id',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
    );
}
